﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.ServiceModel;

namespace MagicEightBallServiceLib
{
    public class MagicEightBallService : IMagicEightBall
    {
        public string ObtainAnswerToQuestion(string UserQuestion)
        {
            var answers = new string[] {"Future uncertain", "Yes", "No", "Hazy"};
            Random r = new Random();

            return answers[r.Next(answers.Length)];
        }

        public SomeComplexType GetComplex()
        {
            return new SomeComplexType(1864, "General Mallebrok");
        }

        public int RandomNumber()
        {
            var r = new Random();
            return r.Next(0, 100);
        }
    }
}
